package homework4.action_e;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author CoderXshuai
 */
public class Test {
    public static void main(String[] args) {
        Date d1 = new Date();
        SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd");
        String dateString = df.format("2018-10-12");
        System.out.println(dateString);
    }
}
